package com.fuyun.microservice.connect;

import com.fuyun.microservice.connect.pojo.ClientEndpoint;
import io.netty.channel.Channel;

import java.util.List;
import java.util.Map;

/**
 * Created by tomato on 2019/11/26.
 * Decription:
 */
public interface SessionStore {

    List<ClientEndpoint> all();

    void add(Channel channel,ClientEndpoint clientEndpoint);

    void remove(Channel channel);

    ClientEndpoint getClient(Channel channel);

    Channel getChannel(int clientId);

}
